let data = {
  retCode: 0,
  message: 'xxxxxxxxx',
  exceptionId: '',
  data: {
    total: 100,
    hasNext: true,
    size: 10,
    list: [] as any[],
  },
}
for (let i = 0; i < 100; i++) {
  data.data.list.push({
    id: i + 1 + '',
    labelName: 'xxx',
    labelType: 0,
    creator: 'xxxx',
    createTime: 1662532655603,
    mappingCharList: [
      {
        id: 1,
        dictionaryLabelName: '海上装备',
        dictionaryLabelId: 1,
      },
      {
        id: 2,
        dictionaryLabelName: '航空母舰',
        dictionaryLabelId: 2,
      },
    ],
    ruleConfigList: [
      {
        id: i + '',
        logicChar: '且',
        expressionType: 1,
        expressionValue: '号',
        expressionText: '以“号”结尾',
      },
    ],
  })
}

export default {
  'POST /api/v1/nlp/label/mgmt/query': (req, res) => {
    res.json(data)
  },
  'POST /api/v1/nlp/label/mgmt/add': (req, res) => {
    res.json({
      retCode: 0,
      message: 'xxxxxxxxx',
      exceptionId: '',
    })
  },
  'POST /api/v1/nlp/dictionary/label/list': (req, res) => {
    res.json({
      retCode: 0,
      message: 'xxxxxxxxx',
      exceptionId: '',
      data: [
        {
          dictionaryLabelId: 1,
          dictionaryLabelName: '航空母舰',
          charId: 1,
        },
        {
          dictionaryLabelId: 2,
          dictionaryLabelName: '海上装备',
          charId: 2,
        },
      ],
    })
  },
  'POST /api/v1/nlp/label/mgmt/edit': (req, res) => {
    res.json({
      retCode: 0,
      message: 'xxxxxxxxx',
      exceptionId: '',
    })
  },
  //配置查询
  'GET /api/v1/nlp/label/mgmt/config/query': (req, res) => {
    res.json({
      retCode: 0,
      message: 'xxxxxxxxx',
      exceptionId: '',
      data: {
        list: [
          {
            id: 1,
            logicChar: 0,
            expressionType: 1,
            expressionValue: '号',
            expressionText: '以“号”结尾',
          },
        ] as any[],
      },
    })
  },
}
